<!DOCTYPE HTML>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<%@include file="/context/mytags.jsp"%>
<head>
<meta charset="UTF-8">
<title>我要请假</title>
<link rel="stylesheet" href="${pluginPath}/element/index.css">
<link rel="stylesheet" href="${pluginPath}/font-awesome-4.7.0/font-awesome.min.css">
</head>
<body>
 <div id="app" class="promotion">
          <el-form :model="leave" ref="basicForm" label-width="100px" >
            <el-form-item label="请假人" prop="leName" >
              <el-input type="text" :rows="2" placeholder="请输入内容" v-model="leave.leName " :disabled="show"></el-input>
            </el-form-item>
            
            <el-form-item label="请假开始时间" prop="leStart">
            <el-date-picker v-model="leave.leStart" type="date" placeholder="选择日期" :disabled="show">  </el-date-picker>
            </el-form-item>
            
            <el-form-item label="请假结束时间" prop="leEnd">
             <el-date-picker v-model="leave.leEnd" type="date" placeholder="选择日期" :disabled="show">  </el-date-picker>
            </el-form-item>
            
            <el-form-item label="请假理由" prop="leCause">
              <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="leave.leCause" :disabled="show"></el-input>
            </el-form-item>
            
            
            <el-form-item>
                <el-form-item>
                    <el-button @click="onAgree" v-if="leave.apResult == 'submit' && leave.id" >同意</el-button>
                    <el-button @click="onRefuse" v-if="leave.apResult == 'submit' && leave.id" >拒绝</el-button>
				 </el-form-item>
            </el-form-item>
          </el-form>  
         
    
  </div>
</body>

<script src="${pluginPath}/jquery/jquery-3.1.1.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="${pluginPath}/layer/layer.js"></script>
<script type="text/javascript" src="${pluginPath}/vue/vue.js"></script>
<script type="text/javascript" src="${pluginPath}/element/index.js"></script>
<script type="text/javascript" src="${pluginPath}/vue-resource-1.3.4/vue-resource.min.js"></script>
<script type="text/javascript" src="${pluginPath}/tools/commonTools.js"></script>
<script type="text/javascript" src="${webRoot}/webpage/com/graduation/leave2/leave2Edit.js"></script> 
 </html>